package com.itheima.dao;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/*
类简介：

功能：

时间：2020/4/3

*/
public interface OrderSettingDao {

    int isExit(String date);

    void updateOneDay(@Param("date") String date,@Param("num") String num);

    void insertOneDay(@Param("date") String date,@Param("num") String num);

    List<OrderSetting> findAll(@Param("start") String start,@Param("end") String end);

    int findByOrderDate(Date orderDate);

    void editOneDay(@Param("orderDate") Date orderDate,@Param("number") int number);

    void insertOneDayByEdit(@Param("orderDate") Date orderDate,@Param("number") int number);

    int ifFull(Date orderDate);

    void addOneOrder(OrderSetting orderSetting);
}
